package com.gt.quality.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.gt.quality.base.pojo.CommonTableInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户信息表(sys_file_info)表实体类
 *
 * @author makejava
 * @since 2026-11-25 16:30:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@Schema(title = "sys_file_info", description = "EasyCode")
@TableName(value = "sys_file_info", autoResultMap = true)
public class SysFileInfo extends CommonTableInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * Description:  代理CheckBox的主键
     */
    @TableField(exist = false)
    private String id;

    /**
     * Description:  文件Id
     */
    @Schema(title = "file_id", description = "文件Id")
    @TableId(value = "file_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fileId;

    /**
     * Description:  文件存放地址
     */
    @TableField(value = "file_path")
    @Schema(title = "file_path", description = "文件存放地址")
    private String filePath;

    /**
     * Description:  文件类型
     */
    @TableField(value = "file_type")
    @Schema(title = "file_type", description = "文件类型")
    private String fileType;


    /**
     * Description:  备注
     */
    @TableField(value = "remark")
    @Schema(title = "remark", description = "备注")
    private String remark;

}


